@echo off
echo 正在启动知识问答系统（API + Web）...
echo.

echo 启动API服务...
start "KnowledgeQA API" cmd /k "cd /d "%~dp0src\KnowledgeQA.API" && dotnet run"

echo 等待API服务启动...
timeout /t 5 /nobreak > nul

echo 启动Web服务...
start "KnowledgeQA Web" cmd /k "cd /d "%~dp0src\KnowledgeQA.Web" && dotnet run"

echo.
echo 项目启动完成！
echo.
echo 访问地址：
echo - API文档: http://localhost:5000/swagger
echo - 健康检查: http://localhost:5000/health
echo - 后台管理: http://localhost:5001
echo.
echo 按任意键退出...
pause > nul 